package cn.iocoder.yudao.module.product.controller.app.customermessage.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 客服消息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppCustomerMessagePageReqVO extends PageParam {

    @Schema(description = "发送人的用户编号，关联 MemberUserDO 的 id 编号", example = "22452")
    private Long userId;

    @Schema(description = "商品 SPU 编号，关联 ProductSpuDO 的 id", example = "3166")
    private Long spuId;

    @Schema(description = "是否可见，true:显示false:隐藏")
    private Boolean visible;

    @Schema(description = "消息类型", example = "2")
    private Boolean contentType;

    @Schema(description = "发送类型(1-用户；2-系统；3-客服)", example = "2")
    private Boolean senderType;

    @Schema(description = "回复管理员编号，关联 AdminUserDO 的 id 编号", example = "30542")
    private Long replyUserId;

    @Schema(description = "消息发送时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] sendTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}